//
//  UIAlertView+Block.h
//  Yanwei
//
//  Created by 刘文 on 16/9/28.
//  Copyright © 2016年 DCloud. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CompleteBlock) (NSInteger buttonIndex);

@interface UIAlertView (Block)

/**
 * 用block方式实现UIAlertView回调
 */
- (void)showAlertViewWithCompleteBlock:(CompleteBlock) block;

void AlertWithMessage(NSString * message, CompleteBlock block);
void AlertWithSelections(NSString * message, NSString * btnNO, NSString * btnYES, CompleteBlock block);

@end
